create_env_dict

cpprb.create_env_dict(env, *, int_type=None, float_type=None)

Create env_dict from Open AI gym.space for ReplayBuffer.__init__

envgym.Env

Environment

int_type: np.dtype, optional

Integer type. Default is np.int32

float_type: np.dtype, optional

Floating point type. Default is np.float32

Returns

env_dict – env_dict parameter for ReplayBuffer class.

Return type

dict